package com.blacksea.resourceserver.web.controller;

import com.blacksea.resourceserver.web.request.TestRequest;
import com.blacksea.resourceserver.web.response.TestResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * OAuth2TestController
 *
 * @author blacksea3(jxt) 2021/4/24 20:25
 */
@Controller
public class OAuth2TestController {

    @ResponseBody
    @PostMapping(value = "/getData", produces = "application/json;charset=UTF-8")
    public TestResponse authorizationPOST(@RequestBody TestRequest authorizationCodeRequest) {
        return new TestResponse("SUCCESS", "messages");
    }

}
